xend: pci: only extract the exact pci BDFs
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:47:56 +0000 (10:47 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 4 Jun 2009 09:47:56 +0000 (10:47 +0100)
commite6e2645a5373dbe99685767f9c22616392ade016
tree6ab862cfabd2c678a6bbb25654bd589a620fb5f3
parenta161e0d852981658b56c0de457e213f7d9b02c22
xend: pci: only extract the exact pci BDFs

On some hosts:
[root@localhost ~]# ls /sys/bus/pci/devices/0000:00:05.0/
0000:00:05.0:pcie00  0000:05:00.0          class   driver  local_cpus
resource          subsystem_vendor
0000:00:05.0:pcie01  broken_parity_status  config  enable  modalias
subsystem         uevent
0000:00:05.0:pcie02  bus                   device  irq     power
subsystem_device  vendor

Here we should only get 0000:05:00.0, but we also get 0000:00:05.0
unexpectedly. With this patch, xend only extracts the exact BDF(s).

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/util/pci.py